<?php
class AhlifilmControl extends CI_controller {
    function ahlifilmcontrol() {
        parent::__construct();
        $this->load->model('ahlifilmModel', '', TRUE);
        $this->load->helper(array('form', 'url'));
    }

    function index() {
        $this->load->helper(array('form', 'url'));
        $this->load->view('ahlifilmloginForm');
    }

    function logout() {
        $this->session->unset_userdata('logged_in');
//        session_destroy();
        redirect('ahlifilmControl', 'refresh');
    }
}

?>
